<div class="layui-table-box layui-table-body layui-table-main laytable-sam">
    <table cellspacing="0" cellpadding="0" border="0" class="layui-table">
        <thead>
        <tr onclick="closs_table(this)">
            <th data-field="pic" data-key="1-0-0" class="">
                <div class="layui-table-cell laytable-cell-1-sam-0"><span>材料名称</span></div>
            </th>
            <th data-field="client_ordernum" data-key="1-0-1" class="">
                <div class="layui-table-cell laytable-cell-1-sam-1"><span>指定供应商</span></div>
            </th>
            <th data-field="create_time" data-key="1-0-2" class="">
                <div class="layui-table-cell laytable-cell-1-sam-2"><span>型号</span></div>
            </th>
            <th data-field="factory_id" data-key="1-0-3" class="">
                <div class="layui-table-cell laytable-cell-1-sam-3"><span>颜色</span></div>
            </th>
            <th data-field="exception" data-key="1-0-4" class="">
                <div class="layui-table-cell laytable-cell-1-sam-4"><span>客户幅宽/克重/米-第n次</span></div>
            </th>
            <th data-field="exception" data-key="1-0-5" class="">
                <div class="layui-table-cell laytable-cell-1-sam-5"><span>采购入单</span></div>
            </th>
            <th data-field="exception" data-key="1-0-6" class="">
                <div class="layui-table-cell laytable-cell-1-sam-6"><span>计划采购量</span></div>
            </th>
            <th data-field="exception" data-key="1-0-7" class="">
                <div class="layui-table-cell laytable-cell-1-sam-7"><span>开单采购总数(米)</span></div>
            </th>
            <th data-field="exception" data-key="1-0-8" class="">
                <div class="layui-table-cell laytable-cell-1-sam-8"><span>采购物料单价</span></div>
            </th>
            <th data-field="exception" data-key="1-0-9" class="">
                <div class="layui-table-cell laytable-cell-1-sam-9"><span>客户物料单价</span></div>
            </th>
            <th data-field="exception" data-key="1-0-10" class="">
                <div class="layui-table-cell laytable-cell-1-sam-10"><span>单位</span></div>
            </th>
            <th data-field="exception" data-key="1-0-11" class="">
                <div class="layui-table-cell laytable-cell-1-sam-11"><span>采购物料单项金额</span></div>
            </th>
            <th data-field="exception" data-key="1-0-12" class="">
                <div class="layui-table-cell laytable-cell-1-sam-12"><span>客户物料单项金额-计算</span></div>
            </th>
            <th data-field="exception" data-key="1-0-13" class="">
                <div class="layui-table-cell laytable-cell-1-sam-13"><span>盈亏情况</span></div>
            </th>
            <th data-field="exception" data-key="1-0-14" class="">
                <div class="layui-table-cell laytable-cell-1-sam-14"><span>赢亏占比</span></div>
            </th>
            <th data-field="exception" data-key="1-0-15" class="">
                <div class="layui-table-cell laytable-cell-1-sam-15"><span>面料核价金额</span></div>
            </th>
            <th data-field="exception" data-key="1-0-16" class="">
                <div class="layui-table-cell laytable-cell-1-sam-16"><span>用量核价金额</span></div>
            </th>
            <th data-field="exception" data-key="1-0-17" class="">
                <div class="layui-table-cell laytable-cell-1-sam-17"><span>余料情况</span></div>
            </th>
            <th data-field="exception" data-key="1-0-18" class="">
                <div class="layui-table-cell laytable-cell-1-sam-18"><span>裁剪备注</span></div>
            </th>
        </tr>
        </thead>
        <tbody>
        {{# layui.each(d.omList, function(kkk, dv){ }}
        <tr data-index="kkk" class="">
            <td data-field="pic" data-key="1-0-0" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-0">
                    {{# if(dv.caigou_cost_status == 0 && dv.is_make_tag==1 && dv.mInfo.type !="accessories"){ }}
                    <a class="layui-btn layui-btn-normal layui-btn-xs layui-bg-red">催单</a>
                    {{# } }}
                    {{# if(dv.is_share== 1){ }}
                    <a class="layui-btn layui-btn-normal layui-btn-xs layui-bg-orange">共</a>
                    {{# } }}

                    {{layui.tool.formatMaterialType(dv.mInfo.type,'',2)}}<span
                        class='copy-item'>{{dv.mInfo.name}}</span>
                </div>
            </td>
            <td data-field="client_ordernum" data-key="1-0-1" class="">
                <div class="layui-table-cell laytable-cell-1-sam-1">
                    <a href='javascript:void(0);' class='supplier' data-supplier='{{dv.mInfo.supplier}}'
                       data-address='{{dv.mInfo.address}}' data-contact='{{dv.mInfo.contact}}'>{{dv.mInfo.supplier}}</a>
                </div>
            </td>
            <td data-field="create_time" data-key="1-0-2" class="">
                <div class="layui-table-cell laytable-cell-1-sam-2">{{dv.mInfo.model}}</div>
            </td>
            <td data-field="factory_id" data-key="1-0-3" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-3">{{dv.mInfo.color}}</div>
            </td>
            <td data-field="exception" data-key="1-0-4" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-4">
                    {{# if( dv.fabric_width_once != dv.mInfo.fabric_width || dv.weight_once != dv.mInfo.weight ){ }}
                    <span style=""> {{dv.mInfo.fabric_width}} / {{dv.mInfo.weight}} /  {{dv.mInfo.metre}}</span>
                    {{# }else{ }}
                    {{dv.mInfo.fabric_width}} / {{dv.mInfo.weight}} / {{dv.mInfo.metre}}
                    {{# } }}
                </div>
            </td>
            <td data-field="exception" data-key="1-0-5" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-5">
                    <div class="feed-btn-{{dv.mid}}">
                        <span><a href="{:url('stallFeedDetail')}?mid={{ dv.mid }}"
                                 title="采购入单 --订单号：{{dv.client_ordernum}}" class="hisi-iframe feed-detail-{{ dv.mid }}"
                                 hisi-data="{width: '1200px', height: '88%'}">
        [入单]{{ dv.billing_caigou_count_feed }}</a></span>
                    </div>
                </div>
            </td>
            <td data-field="exception" data-key="1-0-6" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-6">
                    {{layui.tool.bcmul(dv.material_dosage, dv.quantity)}}
                </div>
            </td>
            <td data-field="exception" data-key="1-0-7" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-7">
                    {{dv.billing_caigou_count}}
                </div>
            </td>
            <td data-field="exception" data-key="1-0-8" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-8">
                    {{# if(parseFloat(dv.caigou_unitprice) > parseFloat(dv.customer_price)){ }}
                    <span style="color:red">{{dv.caigou_unitprice}}</span>
                    {{# }else{ }}
                    {{dv.caigou_unitprice}}
                    {{# } }}
                </div>
            </td>
            <td data-field="exception" data-key="1-0-9" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-9">
                    {{dv.customer_price}}
                </div>
            </td>
            <td data-field="exception" data-key="1-0-10" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-10">
                    {{dv.mInfo.unit}}
                </div>
            </td>
            <td data-field="caigou_subtotal_money" data-key="1-0-11" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-11">
                    {{dv.caigou_subtotal_money}}
                </div>
            </td>
            <td data-field="col1_2" data-key="1-0-12" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-12">
                </div>
            </td>
            <td data-field="exception" data-key="1-0-13" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-13">
                    {{dv.win_money}}
                </div>
            </td>
            <td data-field="exception" data-key="1-0-14" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-14">
                    {{dv.win_pre}}
                </div>
            </td>
<!--            <td data-field="fabric_price_amount" data-key="1-0-15"-->
<!--                style="border-bottom:2px dotted #5FB878;" onclick="sam_edit(this)">-->
<!--                <div class="layui-table-cell laytable-cell-1-sam-15">{{dv.fabric_price_amount}}</div>-->
<!--            </td>-->
            <td data-field="exception" data-key="1-0-15" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-15">
                    {{dv.fabric_price_amount}}
                </div>
            </td>
            <td data-field="exception" data-key="1-0-16" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-16">
                    {{dv.dosage_price_amount}}
                </div>
            </td>
            <td data-field="exception" data-key="1-0-17" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-17">
                    {{dv.metre}}
                </div>
            </td>
            <td data-field="exception" data-key="1-0-18" data-content="" class="">
                <div class="layui-table-cell laytable-cell-1-sam-18">
                    {{dv.caichuang_remark}}
                </div>
            </td>
        </tr>
        {{# }); }}
        </tbody>
    </table>
</div>
